package com.cxl.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class QueryVo implements Serializable {
    private Integer role;
    private String cname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date indate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date outdate;
    private String mysort;

    @Override
    public String toString() {
        return "QueryVo{" +
                "role=" + role +
                ", cname='" + cname + '\'' +
                ", indate=" + indate +
                ", outdate=" + outdate +
                ", mysort='" + mysort + '\'' +
                '}';
    }

    public String getMysort() {
        return mysort;
    }

    public void setMysort(String mysort) {
        this.mysort = mysort;
    }

    public QueryVo(Integer role, String cname, Date indate, Date outdate, String mysort) {
        this.role = role;
        this.cname = cname;
        this.indate = indate;
        this.outdate = outdate;
        this.mysort = mysort;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    public Date getOutdate() {
        return outdate;
    }

    public void setOutdate(Date outdate) {
        this.outdate = outdate;
    }

    public QueryVo() {
    }

    public QueryVo(Integer role, String cname, Date indate, Date outdate) {
        this.role = role;
        this.cname = cname;
        this.indate = indate;
        this.outdate = outdate;
    }
}
